package com.xtedu.examproject.entity;

import java.io.Serializable;

public class Subject implements Serializable {
    private int id;
    private String name;
    private boolean state;

    public Subject(int id, String name, boolean state) {
        this.id = id;
        this.name = name;
        this.state = state;
    }

    public Subject() {
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public boolean isState() {
        return state;
    }

    public void setState(boolean state) {
        this.state = state;
    }

    @Override
    public String toString() {
        return "Subject [id=" + id + ", name=" + name + ", state=" + state + "]";
    }
}
